package com.bjx.generator.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc: 主子关联表
 * @author: liushuai
 * @date: 2022/9/22 14:44
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TableSonVO {
    /**
    * 主键
    */
    @TableId(type = IdType.AUTO)
    @Schema(title = "tableSonId",description = "主键id")
    private Long tableSonId;

    /**
    * 主表id
    */
    @Schema(title = "tableId",description = "主表Id")
    private Long tableId;

    /**
    * 字表id
    */
    @Schema(title = "tableSubId",description = "子表id")
    private Long tableSubId;

    /**
    * 字表类型(1字表/2关联表)
    */
    @Schema(title = "type",description = "字表类型(1子表/2关联表)")
    private Short type;

    /**
    * 模板名称
    */
    @Schema(title = "templateName",description = "模板名称")
    private String templateName;

    @Schema(title = "tableName",description = "表名称")
    private String tableName;
}